EMT Practice Test

1. Question Content...


Question List

Question1: What output does the command seq 1 5 20produce?
1

Question2: Given the following excerpt of the sudoconfiguration:
jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk
Which of the following statements are true? (Choose three.)

Question3: What is the purpose of the file /etc/profile?

Question4: Why is the correct configuration of a system's time zone important?

Question5: Which TWO statements about crontab are true?

Question6: Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Question7: Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Question8: What output is produced by the following command sequence?
echo '1 2 3 4 5 6' | while read a b c; do
echo result $c $b $a;
done

Question9: Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)

Question10: Which command makes the shell variable named VARIABLE visible to subshells?

Question11: Which of the following commands display a list of jobs in the print queue? (Choose two.)

Question12: Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

Question13: In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)

Question14: Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

Question15: Which file contains the date of the last change of a user's password?

Question16: Which of the following comparison operators for testwork on elements in the file system? (Choose two.)

Question17: In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?

Question18: What is true about the file /etc/localtime?

Question19: Which of the following commands lists all defined variables and functions within Bash?

Question20: Which file inside the CUPS configuration directory contains the definition of the printers?

Question21: Which of the following commands should be executed when starting a login shell in order to change the language of messages for an internationalized program to Portuguese (pt)?

Question22: Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Question23: Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Question24: What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Question25: FILL BLANK
What command, depending on its options, can display the open TCP connections, the routing tables, as well as network interface statistics? (Specify only the command without any path or parameters.)

Question26: Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Question27: What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)

Question28: Which of the following configuration files should be modified to globally set shell variables for all users?

Question29: Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)

Question30: Which crontab entry could be used to set the system time at regular intervals?

Question31: Which commands can you use to change a user's account aging information? (Choose THREE correct answers.)

Question32: Which of the following changes may occur as a consequence of using the command ip? (Choose three.)

Question33: What is true about the file /etc/localtime?

Question34: What is the purpose of the command mailq?

Question35: Which of the following protocols is related to the term open relay?

Question36: Which command should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO correct answers)

Question37: Which of the following is a valid IPv6 address?

Question38: Which of the following getentinvocations lists all existing users?

Question39: With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)

Question40: Which of the following sections exists in a systemd timer unit?

Question41: Which of the following comparison operators for test work on elements in the file system? (Choose two.)

Question42: The X11 configuration file xorg.conf is grouped into section. How is the content of the section SectionName represented?

Question43: What command should be used to print a listing of email in the system's mail queue?

Question44: Where are user specific crontabs stored?

Question45: FILL BLANK
What command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify the command name only without any path.)

Question46: Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Question47: What command displays all aliases defined in the current shell? (Specify the command without any path information)

Question48: Which of the following are syslog facilities? (Choose two.)

Question49: On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)

Question50: Which of the following statements is true regarding systemd timer units?

Question51: Which of the following states can NetworkManager show regarding the system's network connectivity? (Choose two.)

Question52: Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing?
(Choose three.)

Question53: Which of the commands below might have produced the following output?

Question54: Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

Question55: Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

Question56: Which of the following SQL statements will select the fields name and address from the contacts table?

Question57: Which option in the chrony configuration file changes the initial interval of polls to a NTP server in order to speed up the initial synchronization?

Question58: Which of the following commands lists all defines variables and functions within Bash?

Question59: Which of the following files is not read directly by a Bash login shell?

Question60: What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done

Question61: Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

Question62: In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

Question63: What information is provided by the echo $$ command?

Question64: Which of the following tasks are handled by a display manager like XDM or KMD? (Choose two.)

Question65: The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

Question66: Which of the following environment variables can be defined in locale.conf? (Choose two.)

Question67: Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

Question68: After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.)

Question69: What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)

Question70: Your senior administrator asked you to change the default background of his machine, which uses XDM.
Which file would you edit to achieve this?

Question71: By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

Question72: The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)

Question73: FILL BLANK
Which command must be run after adding a new email alias to the configuration in order to make this change effective? (Specify the command without any path but including all required parameters.)

Question74: What is the purpose of TCP wrapper?

Question75: Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose three.)

Question76: Which of the following commands shows all active systemd timers?

Question77: Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Question78: On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)

Question79: What can be specified with useradd? (Choose two.)

Question80: Which of the following programs can be used to determine the routing path to a given destination?

Question81: Which of the following commands can identify the PID od a process which opened a TCP port?

Question82: Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Question83: After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?

Question84: Which of the following commands finds all files owned by root that have the SetUID bit set?

Question85: Which of the following find commands will print out a list of files owned by root and with the SUID bit set in
/usr?

Question86: Which standardized TCP port is used by HTTPS services?

Question87: Which of the following commands displays all environment and shell variables?

Question88: What is true regarding the command sendmail?

Question89: FILL BLANK
Which environment variable is used by an X11 client to determine the X Server to connect to? (Specify only the variable name without any preceding commands or values.)

Question90: What is true about NetworkManager on a Linux system that uses its distribution's mechanisms to configure network interfaces? (Choose two.)

Question91: Which of the following fields are available in the standard format of both the global /etc/crontab file as well as in user-specific crontabfiles? (Choose two.)

Question92: Which of the following lines is an example of a correct setting for the DISPLAY environment variable?

Question93: What is true regarding the file ~/.forward?

Question94: How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.)

Question95: You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message,
"hello". Which command will do this?

Question96: Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

Question97: What output will the command seq 10 produce?

Question98: If neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

Question99: How can a specific user be prevented from scheduling tasks with at?

Question100: What is the purpose of the nsswitch.conf file?

Question101: Which of the following commands sets the system's time zone to the Canadian Eastern Time?

Question102: Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Question103: On a machine running several X servers, how do programs identify the different instances of the X11 server?

Question104: What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)

Question105: Which of the following getent invocations lists all existing users?

Question106: To exclude all log messages of a given logging facility, you should use a logging priority of _____ .

Question107: What is true about the following command?
nmcli device wifi connect WIFIoI

Question108: FILL BLANK
The presence of what file will temporarily prevent all users except root from logging into a system? (Specify the full name of the file, including path.)

Question109: FILL BLANK
What option to useradd creates a new user's home directory and provisions it with a set of standard files?
(Specify only the option name without any values or parameters.)

Question110: Which of the following commands can be used to limit the amount of memory a user may use?

Question111: Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

Question112: Which mechanism does ssh use to interact with the SSH agent?

Question113: Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?